package com.example.mybatis.dao;

import com.example.mybatis.model.CityTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ICityDao {

    List<CityTO> queryByParentCode(String parentCode);

    List<CityTO> queryByParentCodes(@Param("parentCodes") List<String> parentCodes);

    List<String> queryExistCityCodes(List<String> cityCodes);

    void batchAddCities(List<CityTO> cities);

    void batchUpdateCities(List<CityTO> cities);



}
